<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-jingyingcontext-edit" th:object="${jingyingcontext}">
            <input id="jingyingcontextId" name="jingyingcontextId" th:field="*{jingyingcontextId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">经营类型：</label>
				<div class="col-sm-8">
					<select id="jingyingtypeId" name="jingyingtypeId" class="form-control m-b" th:with="type=${@dict.getType('sys_fuwu_type')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{jingyingtypeId}"></option>
					</select>

				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">企业名称：</label>
				<div class="col-sm-8">
					<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">营业执照号码：</label>
				<div class="col-sm-8">
					<input id="yingyeCode" name="yingyeCode" th:field="*{yingyeCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">经营地址：</label>
				<div class="col-sm-8">
					<input id="yingyeAdress" name="yingyeAdress" th:field="*{yingyeAdress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">法人姓名：</label>
				<div class="col-sm-8">
					<input id="farenName" name="farenName" th:field="*{farenName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">法人身份证件号码：</label>
				<div class="col-sm-8">
					<input id="farenCode" name="farenCode" th:field="*{farenCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">平台负责人姓名：</label>
				<div class="col-sm-8">
					<input id="pingtaiName" name="pingtaiName" th:field="*{pingtaiName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">平台负责人身份证号码：</label>
				<div class="col-sm-8">
					<input id="pingttaiCode" name="pingttaiCode" th:field="*{pingttaiCode}" class="form-control" type="text">
				</div>
			</div>

			<div class="form-group">	
				<label class="col-sm-3 control-label">服务范围：</label>
				<div class="col-sm-8">
					<select id="serverFanWei" name="serverFanWei" class="form-control m-b" th:with="type=${@dict.getType('sys_fuwu_fanwei')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{serverFanWei}"></option>
					</select>

				</div>
			</div>

		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/jingyingcontext";
		$("#form-jingyingcontext-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-jingyingcontext-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
